/**
 * Created by 13616 on 2017/3/10.
 */
class Outer{
    private int x=1;
    public void print(){
        Inner inner=new Inner();
        inner.display();
    }
    class Inner{
        private int y=2;
        private void display(){
            System.out.println("Inner:"+x++);
        }
    }
}
public class NestedClasses{
    public static void main(String[] args){
        Outer outer=new Outer();
        outer.print();
    }
}
